<%@include file="/WEB-INF/templates/configuration.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@page import="java.util.ArrayList"%>

<div class="login">
    <div class="login-box">
        <h2>Login to Three2Learn</h2>
        <c:if test="${not empty foutMelding}">
            <!-- Mochten er foutmeldingen zijn, dan worden ze hier getoond -->
            <p>${foutMelding}</p>
        </c:if>
        <p>
            <%
                session.setAttribute("name", "username");
                session.setAttribute("pass", "password");
            %>
        <form id="Login" action="login" method="post">
            <c:if test="${loginError != null}">
                <ul class="center">
                    <c:forEach var="current" items="${loginError}">
                        <li>
                            <p style="color: orange;"><c:out value="${current}"/></p>
                        </li>
                    </c:forEach>
                </ul>
            </c:if>
            <table border="0">
                <tr>
                    <td><label for="username">Username</label></td>
                    <td><input type="textfield" id="username" name="username" value="${user.userName}"></input></td>
                </tr>
                <tr>
                    <td><label for="password">Password</label></td>
                    <td><input type="password" id="password" name="password" value="${user.password}"></input></td>
                </tr>
            </table>
            </p>
            <p>
                <input class="submit" type="submit" value="Login">
            </p>
        </form>
    </div>
</div>